package com.zhiyin.seal.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhiyin.seal.entity.CompanyAdminEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface CompanyAdminDao extends BaseMapper<CompanyAdminEntity> {

    List<CompanyAdminEntity> selectCompanyAdminList(@Param("companyId") Long companyId);

    Integer insertCompanyAdmin(@Param("companyAdminEntity") CompanyAdminEntity companyAdminEntity);

    Integer deleteCompanyAdmin(@Param("userId") Long userId,@Param("companyId") Long companyId);

    Integer deleteAdminFunction(@Param("userId") Long userId,@Param("companyId") Long companyId);

    Integer deleteAdminSeal(@Param("userId") Long userId,@Param("companyId") Long companyId);

    Integer deleteCompanyAllAdmin(@Param("companyId") Long companyId);

    Integer deleteAllAdminFunction(@Param("companyId") Long companyId);

    Integer deleteAllAdminSeal(@Param("companyId") Long companyId);
}
